﻿using System.Data.Entity.ModelConfiguration;
using NJ.Entity;

namespace NJ.EntityFramework.Mapping
{
    public class RoleMenuMapping : EntityTypeConfiguration<RoleMenuEntity>
    {
        public RoleMenuMapping()
        {
            ToTable("Sys_Role_Menu");
            HasKey(t => t.Id);
            HasIndex(t => t.RoleId);
            HasIndex(t => t.MenuId);
        }
    }
}
